     function init_uploader()
     {
    	 var manualuploader = $('#fine-uploader').fineUploader({
          request: {
        	  // '/adon/upload'
        	  endpoint: 'upload'
        	  //endpoint: '/adon/assets/fineuploader/server/uploader'
          },
          autoUpload: false,
          validation: {
              allowedExtensions: ['jpeg', 'jpg', 'txt'],
              sizeLimit: 51200 // 50 kB = 50 * 1024 bytes
            },
            text: {
                uploadButton: '<i class="icon-plus icon-white"></i> Add files',
                cancelButton: '<i class="icon-remove"></i> Cancel',
            },
            template: '<div class="qq-uploader">' +
            '<div class="qq-upload-button btn btn-success">{uploadButtonText}</div>' +
            //' <div id="triggerUpload" class="btn btn-primary"><i class="icon-upload icon-white"></i> Upload now</div>' +
            '<ul class="qq-upload-list"></ul>' +
            '<div class="qq-upload-drop-area"><span>{dragZoneText}</span></div>' +
            '</div>',
			classes: {
			  success: 'alert alert-success',
			  fail: 'alert alert-error'
			},
            showMessage: function(message) {
              // Using Bootstrap's classes
            	display_alert(message, '#alert_area', 'error');
            },
            dragAndDrop: {
            	hideDropzones: false
            },
          debug: true
        });
    	
    	 manualuploader.on('submit', function() {
    		fileCount++;
    	 });
    	 manualuploader.on('cancel', function() {
    		 fileCount--;
    	 });

    	    // upload files
    	    manualuploader.on('complete', function(event, id, fileName, responseJSON) {
    	    	if(responseJSON.success) {
    	    		//$(this).append('<img src="/adon/assets/fineuploader/server/uploads/' + fileName + '" alt="' + fileName + '">');
    	    		// add the filename to an array
    	    		imgURL.push(fileName);
    	    		if(manualuploader.fineUploader('getInProgress') == '0')
    	    		{
    	    			object_create();
    	    		}
    	        }
    	    });
    	 
    	return manualuploader;
     }
